<div class="wide form">

<?php $form = $this->beginWidget('GxActiveForm', array(
	'action' => Yii::app()->createUrl($this->route),
	'method' => 'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model, 'id'); ?>
		<?php echo $form->textField($model, 'id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'crdate'); ?>
		<?php echo $form->textField($model, 'crdate'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'hidden'); ?>
		<?php echo $form->dropDownList($model, 'hidden', array('0' => Yii::t('app', 'Нет'), '1' => Yii::t('app', 'Да')), array('prompt' => Yii::t('app', 'Все'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'user_id'); ?>
		<?php echo $form->dropDownList($model, 'user_id', GxHtml::listDataEx(Users::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'Все'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'firm_tmpl_id'); ?>
		<?php echo $form->dropDownList($model, 'firm_tmpl_id', GxHtml::listDataEx(FirmTmpls::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'Все'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'title'); ?>
		<?php echo $form->textField($model, 'title', array('maxlength' => 255)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'description'); ?>
		<?php echo $form->textArea($model, 'description',array('rows'=>6, 'cols'=>50)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'city_id'); ?>
		<?php echo $form->dropDownList($model, 'city_id', GxHtml::listDataEx(Cities::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'Все'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'address'); ?>
		<?php echo $form->textArea($model, 'address',array('rows'=>6, 'cols'=>50)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'country_id'); ?>
		<?php echo $form->dropDownList($model, 'country_id', GxHtml::listDataEx(Countries::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'Все'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'region_id'); ?>
		<?php echo $form->dropDownList($model, 'region_id', GxHtml::listDataEx(Regions::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'Все'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'phone'); ?>
		<?php echo $form->textField($model, 'phone', array('maxlength' => 100)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'active'); ?>
		<?php echo $form->dropDownList($model, 'active', array('0' => Yii::t('app', 'Нет'), '1' => Yii::t('app', 'Да')), array('prompt' => Yii::t('app', 'Все'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'start_date'); ?>
		<?php echo $form->textField($model, 'start_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'activated_by'); ?>
		<?php echo $form->textField($model, 'activated_by'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'end_date'); ?>
		<?php echo $form->textField($model, 'end_date'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'rubric_id'); ?>
		<?php echo $form->dropDownList($model, 'rubric_id', GxHtml::listDataEx(Rubrics::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'Все'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'category_id'); ?>
		<?php echo $form->dropDownList($model, 'category_id', GxHtml::listDataEx(Categories::model()->findAllAttributes(null, true)), array('prompt' => Yii::t('app', 'Все'))); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'rating_order'); ?>
		<?php echo $form->textField($model, 'rating_order'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'author_id'); ?>
		<?php echo $form->textField($model, 'author_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model, 'zip'); ?>
		<?php echo $form->textField($model, 'zip'); ?>
	</div>

	<div class="row buttons">
		<?php echo GxHtml::submitButton(UserModule::t('Поиск')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->
